import fetch from '../request.js'

// 获取验证码
export function sendSms(params) {
	return fetch.request("/pekingFish/appConfig/sendSms/"+params, "GET",'', true, true, false,false)
}

// 获取当前登录用户
export function userInfo(params) {
	return fetch.request("/pekingFish/appConfig/getUserInfo/"+params, "GET",'', true, true, true,false)
}

// 登录
export function login(params) {
	return fetch.request("/pekingFish/appConfig/checkCode/"+params, "GET",'', true, true, false,false)
}

// 退出登录
export function loginOut(params) {
	return fetch.request("/pekingFish/appConfig/userInfoCancel", "POST",params, false, true, false,false)
}

// 获取协议列表
export function appAgreement(params) {
	return fetch.request("/pekingFish/appAgreement/list", "GET",params, true, true, false,false)
}